# -*- utf-8 -*-
# token过期时间
class OutTime:
    TOKEN_OUT_TIME = 60 * 60 * 24 * 60
    SMS_VER_CODE_OUT_TIME = 60 * 60 * 60
    RESET_CODE_OUT_TIME = 60 * 5
    REPORT_IMG_OUT_TIME = 60 * 60 * 24 * 30


class Aliyun:
    AccessKey_ID = 'LTAI4G6ewmUGWPfQdkoeLwqM'
    AccessKey_Secret = 'MGAo8aciAhdPNOPrWsvteI9aRbHHE0'
    BUCKET = 'cacode-ssb'
    Endpoint = 'https://oss-cn-hangzhou.aliyuncs.com'
    Report_Path = 'report/'
    Need_Path = 'ndimgs/'

    @staticmethod
    def get_img_path(path):
        return f'https://cacode-ssb.oss-cn-hangzhou.aliyuncs.com/{path}'
